package com.bs.regsystemapi.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author ning
 * @date 2022-12-29 17:52
 * @description 分页结果封装对象
 */
@Data
public class PageResult implements Serializable {
    /**
     * 总记录数
     */
    @ApiModelProperty("总记录数")
    private Long total;

    /**
     * 当前页结果
     */
    @ApiModelProperty("当前页查询结果")
    private List rows;

    public PageResult(Long total, List rows) {
        super();
        this.total = total;
        this.rows = rows;
    }
}
